package com.wdl.modules.myhouse.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 文件表
 *
 * @author lucain sunlightcs@gmail.com
 * @since 1.0.0 2022-08-13
 */
@Data
@TableName("file")
public class FileEntity {

    /**
     * 
     */
    @TableId(type= IdType.ASSIGN_ID)
	private Long id;
    /**
     * 收藏,点赞,评论数
     */
    private Integer collection;
    private Integer likes;
    private Integer comments;
    /**
     * 
     */
	private Integer fileTypeId;
    /**
     * 
     */
	private String fileName;
    /**
     * 
     */
	private String fileUrl;
    /**
     * 
     */
	private String fileTag;
    /**
     * 
     */
	private String fileDescribe;
    /**
     * 
     */
	private byte[] fileImg;
    /**
     * 
     */
	private Float fileSize;
    /**
     * 
     */
    @JsonFormat(pattern = "yyyy年MM月dd日",timezone="Asia/Shanghai")
    private Date uploadTime;
    /**
     * 
     */
	private Date updateTime;
    /**
     * 上传的用户id
     */
	private Integer creatorId;
    private String imgUrl;
}